package Demo;

public class Demo19 {
    public static void main(String[] args) {
        sigleTon2 s = sigleTon2.getInstance();
        System.out.println(s);
        sigleTon2.fun();
    }
}

class sigleTon2 {
    private sigleTon2() {
    }

    private static sigleTon2 s;

    public static sigleTon2 getInstance() {
        return s;

    }

    public static void fun() {
        System.out.println("helloworld");
    }
}
